<!DOCTYPE html>
<html lang="ch">

<head>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?90d9b1016c84f436fc9b4b318f5a0ff9";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <meta name="keywords" content="hzyadmin,hzy,HZY,HZY.AdminRazor,hzyadminspa,HZY.AdminSpa">
    <meta charset="UTF-8">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <!-- 移动设备 viewport -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit">
    <!-- 禁止搜索引擎抓取 -->
    <meta name="robots" content="nofollow">
    <!-- 禁止百度SiteAPP转码 -->
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <!-- Chrome浏览器添加桌面快捷方式（安卓） -->
    <meta name="mobile-web-app-capable" content="yes">
    <!-- Safari浏览器添加到主屏幕（IOS） -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="">
    <!--[if lt IE 9]>
        <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
        <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <title>HzyAdminUI</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <!--element-ui-->
    <link href="/libs/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
    <!--hzy-admin-ui-public-->
    <link href="/styles/hzy-admin-ui.css" rel="stylesheet">
    <!--hzy-admin-ui-tools-->
    <link href="/styles/hzy-admin-ui-tools.css" rel="stylesheet">
    <style>
        body {
            background: #f0f2f5 !important;
        }
    </style>
</head>

<body>

    <div id="app" v-cloak class="p-15">
        <el-card class="w100 mb-15" shadow="never" :body-style="{padding:0}" v-show="fromSearch.state">
            <el-row :gutter="15" class="p-15">
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" class="pb-15">
                    <el-input v-model="fromSearch.vm.value" placeholder="用户名" />
                </el-col>
                <!--button-->
                <el-col :xs="24" :sm="12" :md="6" :lg="4" :xl="4" style="float: right">
                    <el-button type="primary" class="mr-10">查询</el-button>
                    <el-button class="mr-10">重置</el-button>
                </el-col>
            </el-row>
        </el-card>
        <el-card class="w100" shadow="never" :body-style="{padding:0}">
            <el-row :gutter="15" class="p-15 pb-0">
                <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" class="pb-15">
                    <el-button type="primary" icon="plus" class="mr-15" @click="info">新建
                    </el-button>
                    <el-popconfirm title="您确定要删除?" @confirm="confirm" okText="确定" cancelText="取消">
                        <a-button type="danger" icon="delete" class="mr-15">批量删除
                        </a-button>
                    </el-popconfirm>
                </el-col>
                <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" class="pb-15 text-right">
                    <el-dropdown>
                        <el-button icon="el-icon-arrow-down">
                            更多操作
                        </el-button>
                        <el-dropdown-menu slot="dropdown">
                            <el-dropdown-item>
                                <span @click="exportExcel"> 导出 Excel</span>
                            </el-dropdown-item>
                            <el-dropdown-item @click="exportExcel">
                                <span @click="exportExcel"> 导出 Pdf</span>
                            </el-dropdown-item>
                        </el-dropdown-menu>
                    </el-dropdown>
                </el-col>
            </el-row>
            <el-table :data="table.data" stripe style="width: 100%">
                <el-table-column fixed prop="date" label="日期" width="150">
                </el-table-column>
                <el-table-column prop="name" label="姓名" width="120">
                </el-table-column>
                <el-table-column prop="province" label="省份" width="120">
                </el-table-column>
                <el-table-column prop="city" label="市区" width="120">
                </el-table-column>
                <el-table-column prop="address" label="地址">
                </el-table-column>
                <el-table-column prop="zip" label="邮编" width="120">
                </el-table-column>
                <el-table-column fixed="right" label="操作" width="150">
                    <template slot-scope="scope">
                        <el-link type="primary" @click="info()">编辑</el-link>
                        <el-link type="danger" class="ml-10">删除</el-link>
                    </template>
                </el-table-column>
            </el-table>
        </el-card>
    </div>

    <!-- jquery-3.2.1.min.js -->
    <script src="/libs/jquery/jquery-3.2.1.min.js"></script>
    <!-- layer -->
    <script src="/libs/layer/layer.js"></script>
    <!--vue-->
    <script src="/libs/vue.js"></script>
    <!--moment-->
    <script src="/libs/moment.min.js"></script>
    <!--element-ui-->
    <script src="/libs/element-ui/lib/index.js"></script>
    <!--axios-->
    <script src="/libs/axios.min.js"></script>
    <!--tools-->
    <script src="/scripts/tools.js"></script>
    <!--httpClient-->
    <script src="/scripts/httpClient.js"></script>
    <script type="text/javascript">
        var app = new Vue({
            el: "#app",
            data: function() {
                return {
                    fromSearch: {
                        state: false,
                        fieldCount: 7,
                        vm: {
                            value: "",
                        },
                    },
                    from: {
                        visible: false,
                    },
                    table: {
                        data: [],
                    },
                }
            },
            created() {
                this.findList();
            },
            mounted: function() {

            },
            methods: {
                findList() {
                    tools.loadingStart();
                    setTimeout(() => {
                        this.table.data = [{
                            date: '2016-05-02',
                            name: '王小虎',
                            province: '上海',
                            city: '普陀区',
                            address: '上海市普陀区金沙江路 1518 弄',
                            zip: 200333
                        }, {
                            date: '2016-05-04',
                            name: '王小虎',
                            province: '上海',
                            city: '普陀区',
                            address: '上海市普陀区金沙江路 1517 弄',
                            zip: 200333
                        }, {
                            date: '2016-05-01',
                            name: '王小虎',
                            province: '上海',
                            city: '普陀区',
                            address: '上海市普陀区金沙江路 1519 弄',
                            zip: 200333
                        }, {
                            date: '2016-05-03',
                            name: '王小虎',
                            province: '上海',
                            city: '普陀区',
                            address: '上海市普陀区金沙江路 1516 弄',
                            zip: 200333
                        }];
                        tools.loadingStop();
                    }, 500);
                },
                exportExcel: function() {
                    tools.notice("导出Excel成功!", "成功", "提醒");
                },
                confirm: function() {

                },
                info: function() {
                    let t = this;
                    tools.pageOpen('编辑', '/views/list/info.html?id=123', function() {
                        t.findList();
                    });
                }
            },
        });
    </script>

</body>

</html>